package go84;

public class CordPos {
	public double x;
	public double y;

	public CordPos() {
		x = 0;
		y = 0;
	}

	public CordPos(double longtitude, double latitude) {
		x = longtitude;
		y = latitude;
	}
	
	public Pos toUTM() {
		double[] temp = new double[4];
		if(Convertor.toUTM(x, y,temp))
			return new Pos((int)temp[0],(int)temp[1]);
		else
			return null;
	}
}
